<?php
// Calendar includes
echo $javascript->link('jscalendar-1.0/calendar.js');
echo $javascript->link('jscalendar-1.0/lang/calendar-es.js');
echo $javascript->link('common.js');
// CSS Calendar Theme
echo $html->css('../js/jscalendar-1.0/skins/aqua/theme');
?>
<?php echo $html->css('default', NULL, array(),false) ?>
<?php echo $html->css('form_style', NULL, array(),false) ?>
<?php echo $javascript->link('prototype-1.6.0.3.js'); ?>
<div id="columnA">
    <h3>Editar Produccion</h3>
    <?php
    echo 'Los campos marcados con (*) son obligatorios.';
    echo $form->create('Produccion',array('action'=>'editar/'.$form->value('Produccion.id')));
    echo $form->hidden('Produccion.id');
    echo $form->hidden('Produccion.revision_id');
    ?>
    <table>
        <thead>
            <tr>
                <th>*Cultivo</th>
                <th>*Fecha Imp.</th>
                <th>*Superf.(m&sup2;)</th>
                <th>Forma de Prod.</th>
                <th>Forma de Riego</th>
                <th>Kg Obt.</th>
            </tr>
        </thead>
        <tbody>
            <?php
            echo '<tr>';
            echo '<td>'.$form->input("Produccion.producto_id",array('label'=>'','div'=>false,'class'=>'inputstyle input170','type'=>'select','options'=>$productos)).'</td>';
            echo '<td>'.$datePicker->picker("Produccion.fch_prod", array('label'=>'','div'=>false,'class'=>'inputstyle input90', 'id'=>"Produccion.FchProd")).'</td>';
            echo '<td>'.$form->input("Produccion.sup_sem_prod",array('label'=>'','div'=>false,'class'=>'inputstyle input50')).'</td>';
            echo '<td>'.$form->input("Produccion.produccionforma_id",array('label'=>'','div'=>false,'class'=>'inputstyle input110')).'</td>';
            echo '<td>'.$form->input("Produccion.riegoforma_id",array('label'=>'','div'=>false,'class'=>'inputstyle input120')).'</td>';
            echo '<td>'.$form->input("Produccion.rendimiento_prod",array('label'=>'','div'=>false,'class'=>'inputstyle input50')).'</td>';
            echo '</tr>';
            ?>
        </tbody>
    </table>
    <?php
    echo $form->button('Cancelar', array('onclick'=>'javascript:window.location="/sistemahorticola/revisiones/ver/'.$form->value('Produccion.revision_id').'"'));
    echo $form->submit('Guardar', array('div'=>false));
    echo $form->end();
    ?>
</div>